#ifndef FAVORITLINKS_H
#define FAVORITLINKS_H

#include "wiki.h"

class FavoritLinks : public Wiki
{
public:
    FavoritLinks();


    // Wiki interface
public:
    virtual QString name() override;

    WIKI_AUTOLOAD
    WIKI_AUTOLOAD_FIRST
    WIKI_USE_LIST
    WIKI_NO_CONTENT

    virtual QList<QListWidgetItem *> searching_item(const QString &text) override;
    virtual void content_item(const QListWidgetItem *item, QWebEngineView *view) override;


private:
    QList<QString> m_favorits;
    QMap<QString, QString> m_favorit_links;

    void add_link(QString name, QString url);
};



#endif // FAVORITLINKS_H
